package com.example.myapplication1;

public class Course {
    private String coverUrl; // 课程封面图 URL
    private String title;    // 课程标题
    private String teacher;  // 讲师
    private String difficulty; // 难度
    private float score;     // 评分
    private int courseId;    // 课程 ID（用于跳转详情）
    private String description;

    // getter/setter
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public String getCoverUrl() { return coverUrl; }
    public void setCoverUrl(String coverUrl) { this.coverUrl = coverUrl; }
    public String getTitle() { return title; }
    public void setTitle(String title) { this.title = title; }
    public String getTeacher() { return teacher; }
    public void setTeacher(String teacher) { this.teacher = teacher; }
    public String getDifficulty() { return difficulty; }
    public void setDifficulty(String difficulty) { this.difficulty = difficulty; }
    public float getScore() { return score; }
    public void setScore(float score) { this.score = score; }
    public int getCourseId() { return courseId; }
    public void setCourseId(int courseId) { this.courseId = courseId; }
}